using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._ContingentValues
{
    /// <summary>
    /// <para>Export Contingent Values</para>
    /// <para>Exports field groups and contingent values to a .csv file.</para>
    /// <para>将字段组和条件值导出到 .csv 文件。</para>
    /// </summary>    
    [DisplayName("Export Contingent Values")]
    public class ExportContingentValues : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExportContingentValues()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_target_table">
        /// <para>Target Table</para>
        /// <para>The input geodatabase table or feature class from which the field groups and contingent values will be exported.</para>
        /// <para>输入地理数据库表或要素类，从中导出字段组和条件值。</para>
        /// </param>
        /// <param name="_field_groups_file">
        /// <para>Field Groups Output File (.csv)</para>
        /// <para>The location and name of the output .csv file that will be created with specific column names containing information about the field groups of the target table.</para>
        /// <para>输出.csv文件的位置和名称，该文件将使用包含有关目标表的字段组信息的特定列名创建。</para>
        /// </param>
        /// <param name="_contingent_values_file">
        /// <para>Contingent Values Output File (.csv)</para>
        /// <para>The location and name of the output .csv file that will be created with specific column names containing information about the contingent values of the target table.</para>
        /// <para>输出.csv文件的位置和名称，该文件将使用包含有关目标表的条件值的特定列名称创建。</para>
        /// </param>
        public ExportContingentValues(object _target_table, object _field_groups_file, object _contingent_values_file)
        {
            this._target_table = _target_table;
            this._field_groups_file = _field_groups_file;
            this._contingent_values_file = _contingent_values_file;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Export Contingent Values";

        public override string CallName => "management.ExportContingentValues";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_target_table, _field_groups_file, _contingent_values_file];

        /// <summary>
        /// <para>Target Table</para>
        /// <para>The input geodatabase table or feature class from which the field groups and contingent values will be exported.</para>
        /// <para>输入地理数据库表或要素类，从中导出字段组和条件值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_table { get; set; }


        /// <summary>
        /// <para>Field Groups Output File (.csv)</para>
        /// <para>The location and name of the output .csv file that will be created with specific column names containing information about the field groups of the target table.</para>
        /// <para>输出.csv文件的位置和名称，该文件将使用包含有关目标表的字段组信息的特定列名创建。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Field Groups Output File (.csv)")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _field_groups_file { get; set; }


        /// <summary>
        /// <para>Contingent Values Output File (.csv)</para>
        /// <para>The location and name of the output .csv file that will be created with specific column names containing information about the contingent values of the target table.</para>
        /// <para>输出.csv文件的位置和名称，该文件将使用包含有关目标表的条件值的特定列名称创建。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Contingent Values Output File (.csv)")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _contingent_values_file { get; set; }


        public ExportContingentValues SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}